/**
* 可以采用mockjs来自动生成mock数据
* http://mockjs.com/examples.html#DPD
* @author taoqili
*/
import sleep from 'system-sleep'
import Mock from 'mockjs'
const data = Mock.mock({
  "id": 18,
  "introUrl": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1523362535754&di=dea909d89ac763394a6423134f612b1c&imgtype=0&src=http%3A%2F%2Fa.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F902397dda144ad34e98003fedca20cf431ad8588.jpg",
  "typeName": "mock",
  "name": "mock",
  "nowUser": 74,
  "maxUser": 41,
  "daysRemain": 51,
  "startTime": "2018-4-22",
  "endTime": "2018-5-22",
  "activityLocation": "mock",
  "applyStime": "mock",
  "applyEtime": "mock",
  "detailUrls": [
    "1",
    "2",
    "3",
    "4",
    "5"
  ],
  "userApplystatus": "0",
  "statusName": "mock",
  "status": "mock",
  "currentTime": "mock"
})
export default (req, res, next) => {
  // 模拟网络环境，延迟100ms返回
  sleep(100)
  return {
    ret: 'success',
    code: 0,
    msg: '接口提示信息',
    data: data
  }
}